package com.xia.netty.thread.basic;

public class MyThread implements Runnable {
    @Override
    public void run() {
        String name = Thread.currentThread().getName();
        System.out.println(
                "name = " + name
        );
    }

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        Thread thread = new Thread(myThread);
        thread.start();
    }
}
